import {configureStore} from "@reduxjs/toolkit";
import loginReducer from "@/store/modules/loginStore.jsx";
import supplierReducer from "@/store/modules/supplierStore.jsx";
import applicantReducer from "@/store/modules/applicantStore.jsx";
import projectReducer from "@/store/modules/projectStore.jsx";
import professionalCategoryReducer from "@/store/modules/professionalCategoryStore.jsx";
import commonMaterialsReducer from "@/store/modules/commonMaterialsStore.jsx";


const store=configureStore({
    reducer:{
        // 这里有个约定，所有值后面都加一个"_store"，以方便区分状态管理值
        // 这个loginReducer就是module里面的js里导出的Reducer
        token_store:loginReducer,
        userInfo_store:loginReducer,
        userList_store:loginReducer,
        count_store:loginReducer,
        // supplier部分的reducer
        supplierInfo_store:supplierReducer,
        supplierList_store:supplierReducer,
        suppliersCount_store:supplierReducer,
        supplierListCur_store:supplierReducer,
        supplierPageSize_Store:supplierReducer,
        supplierDriveListChange_store:supplierReducer,
    //     Applicant部分的reducer
        applicantInfo_store:applicantReducer,
        applicantList_store:applicantReducer,
        applicantCount_store:applicantReducer,
        applicantCur_store:applicantReducer,
        applicantPageSize_store:applicantReducer,
        applicantDriveListChange_store:applicantReducer,
    //     Project部分的reducer
        projectInfo_store:projectReducer,
        projectList_store:projectReducer,
        projectCount_store:projectReducer,
        projectCur_store:projectReducer,
        projectPageSize_store:projectReducer,
        projectDriveListChange_store:projectReducer,

    //     ProfessionalCategory部分的reducer
        professionalCategoryInfo_store:professionalCategoryReducer,
        professionalCategoryList_store:professionalCategoryReducer,
        professionalCategoryCount_store:professionalCategoryReducer,
        professionalCategoryCur_store:professionalCategoryReducer,
        professionalCategoryPageSize_store:professionalCategoryReducer,
        professionalCategoryDriveListChange_store:professionalCategoryReducer,


        //     commonMaterial部分的reducer
        commonMaterialsInfo_store:commonMaterialsReducer,
        commonMaterialsList_store:commonMaterialsReducer,
        commonMaterialsCount_store:commonMaterialsReducer,
        commonMaterialsCur_store:commonMaterialsReducer,
        commonMaterialsPageSize_store:commonMaterialsReducer,
        commonMaterialsDriveListChange_store:commonMaterialsReducer,

    }
})

export default store